package com.tianji.learning.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tianji.learning.domain.po.PointsBoard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 Mapper 接口
 * </p>
 *
 * @author xjs
 */
public interface PointsBoardMapper extends BaseMapper<PointsBoard> {

    int createPointsBoardTable(String tableName);

    PointsBoard queryByUserId( @Param("tableName")  String tableName, @Param("userId")  Long userId);

    List<PointsBoard> pageQuery(Page<Object> objectPage, @Param("tableName") String tableName);

    void batchInsert(@Param("tableName")  String tableName, @Param("list") List<PointsBoard> pointsBoards);
}
